package ch9;
public class Duck {
	int pounds = 6;
	float floatability = 2.1f;
	String name = "Generic";
	long[] feathers = {1,2,3,4,5,6,7};
	boolean canFly = true;
	int maxSpeed = 25;
	
	public Duck(){
		System.out.println("type 1 duck");
		System.out.println("pounds ="+pounds);
		System.out.println("---------------");
	}
	
	public Duck(boolean fly){
		System.out.println("type 2 duck");
		System.out.println("pounds ="+pounds);
		System.out.println("---------------");
	}
	
	public Duck(String n, long[] f){
		name = n;
		feathers = f;
		System.out.println("type 3 duck");
		System.out.println("pounds ="+pounds);
		System.out.println("---------------");
	}
	
	public Duck(int w, float f){
		pounds = w;
		floatability = f;
		System.out.println("type 4 duck");
		System.out.println("pounds ="+pounds);
		System.out.println("---------------");
	}
	
	public Duck(float density, int max){
		floatability = density;
		maxSpeed = max;
		System.out.println("type 5 duck");
		System.out.println("pounds ="+pounds);
		System.out.println("---------------");
	}
}
